package demo1;

import java.util.PriorityQueue;

public class Tesr {
    public static void main(String[] args) {
//        PriorityQueue<Integer> priorityQueue1=new PriorityQueue<>();
//
//        priorityQueue1.offer(11);
//        priorityQueue1.offer(12);
//        priorityQueue1.offer(13);
//        System.out.println(priorityQueue1.peek());
        PriorityQueue<Integer> priorityQueue=new PriorityQueue<>(new IntegerComparator());
        priorityQueue.offer(11);
        priorityQueue.offer(12);
        priorityQueue.offer(13);
        System.out.println(priorityQueue.peek());
    }
}
